﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace GH.Web.Frame
{
    public partial class left_2 : GH.Web.BasePage.PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                //角色权限
                if (!GetRight(303))
                {
                    this.TreeView1.Nodes.RemoveAt(5);
                }
            }
        }
        protected void TreeView1_TreeNodeCollapsed(object sender, TreeNodeEventArgs e)
        {
            e.Node.ImageUrl = "~/Images/closed.gif";
        }
        protected void TreeView1_TreeNodeExpanded(object sender, TreeNodeEventArgs e)
        {
            if (e.Node.ChildNodes.Count != 0)
            {
                e.Node.ImageUrl = "~/Images/open.gif";
            }

        }

        protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e)
        {
            this.TreeView1.SelectedNode.Text = "<b>" + this.TreeView1.SelectedNode.Text + "</b>";
        }
    }
}
